package org.jeecg.modules.business.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: bus_member_card
 * @Author: jeecg-boot
 * @Date:   2023-03-10
 * @Version: V1.0
 */
@Data
@TableName("bus_member_card")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bus_member_card对象", description="bus_member_card")
public class BusMemberCard implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "主键")
    private String id;
	/**关联租户*/
//	@Excel(name = "关联租户", width = 15)
    @ApiModelProperty(value = "关联租户")
    private String tenantId;
	/**关联酒店*/
	@Excel(name = "商家", width = 15)
    @ApiModelProperty(value = "关联酒店")
    private String hotelId;
	/**手机号*/
	@Excel(name = "手机号", width = 15)
    @ApiModelProperty(value = "手机号")
    private String mobile;
	/**会员卡号*/
	@Excel(name = "会员卡号", width = 15)
    @ApiModelProperty(value = "会员卡号")
    private String cardNo;
	/**卡内码*/
//	@Excel(name = "卡内码", width = 15)
    @ApiModelProperty(value = "卡内码")
    private String cardInnerNo;
	/**等级类型*/
	@Excel(name = "会员类型", width = 15)
    @ApiModelProperty(value = "等级类型")
    private String gradeId;
	/**会员费*/
//	@Excel(name = "会员费", width = 15)
    @ApiModelProperty(value = "会员费")
    private BigDecimal memberFee;
	/**付款类型*/
//	@Excel(name = "付款类型", width = 15)
    @ApiModelProperty(value = "付款类型")
    private Integer payType;
	/**付款方式*/
//	@Excel(name = "付款方式", width = 15)
    @ApiModelProperty(value = "付款方式")
    private String paymentMethod;
	/**会员姓名*/
	@Excel(name = "会员姓名", width = 15)
    @ApiModelProperty(value = "会员姓名")
    private String name;
	/**头像*/
//	@Excel(name = "头像", width = 15)
    @ApiModelProperty(value = "头像")
    private String avatar;
	/**性别*/
	@Excel(name = "性别", width = 15)
    @ApiModelProperty(value = "性别")
    private Integer sex;
	/**证件类型*/
//	@Excel(name = "证件类型", width = 15)
    @ApiModelProperty(value = "证件类型")
    private Integer certificateType;
	/**证件号*/
	@Excel(name = "证件号", width = 15)
    @ApiModelProperty(value = "证件号")
    private String certificateNo;
    /**生日*/
    @Excel(name = "生日", width = 15)
    @ApiModelProperty(value = "生日")
    private String birthday;
	/**地址*/
//	@Excel(name = "地址", width = 15)
    @ApiModelProperty(value = "地址")
    private String address;
	/**消费密码*/
//	@Excel(name = "消费密码", width = 15)
    @ApiModelProperty(value = "消费密码")
    private String consumePassword;
	/**有效期*/
//	@Excel(name = "有效期", width = 15)
    @ApiModelProperty(value = "有效期")
    private Integer validity;
	/**有效期截止日期*/
//	@Excel(name = "有效期截止日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "有效期截止日期")
    private Date validityEndTime;
	/**备注*/
//	@Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
	/**推荐员工*/
	@Excel(name = "推荐员工", width = 15)
    @ApiModelProperty(value = "推荐员工")
    private String staffId;
	/**可用积分*/
	@Excel(name = "可用积分", width = 15)
    @ApiModelProperty(value = "可用积分")
    private Integer integral;
	/**可用余额*/
	@Excel(name = "可用余额", width = 15)
    @ApiModelProperty(value = "可用余额")
    private BigDecimal balance;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**分组id*/
    @Excel(name = "分组", width = 15)
    @ApiModelProperty(value = "分组id")
    private String groupId;
    /**标签id*/
    @Excel(name = "标签", width = 15)
    @ApiModelProperty(value = "标签id")
    private String labelId;
    /**商城用户id*/
//    @Excel(name = "商城用户id", width = 15)
    @ApiModelProperty(value = "商城用户id")
    private String userId;

	@TableField(exist = false)
	private String hotelName;
	@TableField(exist = false)
    private String gradeName;
    @TableField(exist = false)
    private String groupName;
    @TableField(exist = false)
    private String labelName;

    @ApiModelProperty(value = "会员卡片信息")
    @TableField(exist = false)
    private BusMarketMember marketMember;
}
